package com.travel.server.manager.impl.controller;

import com.travel.server.manager.api.IDataService;
import com.travel.server.manager.dto.request.EmptyRequest;
import com.travel.server.manager.dto.request.data.*;
import com.travel.server.manager.impl.controller.base.AbstractController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiZhenhui
 * @Date: 2018/12/14 19:09
 * @Desc:
 */
@RestController
public class DataController extends AbstractController implements IDataService {
    @Override
    public Object queryWholeData(@RequestBody EmptyRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportWholeData(@RequestBody EmptyRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryPageData(@RequestBody QueryPageDataRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportPageData(@RequestBody ExportPageDataRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryOperateSaleTarget(@RequestBody QueryOperateSaleTargetRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportOperateSaleTarget(@RequestBody ExportOperateSaleTargetRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryOperateRefundAnalysis(@RequestBody QueryOperateRefundAnalysisRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportOperateRefundAnalysis(@RequestBody ExportOperateRefundAnalysisRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryOperateTopRefund(@RequestBody QueryOperateTopRefundRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object queryTradeList(@RequestBody QueryTradeListRequest request) {
        return this.getCommand().handle(request);
    }

    @Override
    public Object exportTradeList(@RequestBody ExportTradeListRequest request) {
        return this.getCommand().handle(request);
    }
}
